

import request from '@/utils/request'
///mes/base/workshop/listN 车间
export function selectWorkShop() {
  return request({
    url: '/mes/base/workshop/listN?workshopType=1',
    headers: {
      isToken: false
    },
    method: 'get',
    timeout: 20000
  })
}
///mes/base/line/listN   产线列表
export function selectLine(id) {
  return request({
    url: '/mes/base/line/listN/' + id,
    headers: {
      isToken: false
    },
    method: 'get',
    timeout: 20000
  })
}

///mes/base/process/listN/{id}   工序列表 (传工艺id),选择产线后，根据产线里面的工艺id传值
export function selectProcess(id) {
  return request({
    url: '/mes/base/process/listN/' + id,
    headers: {
      isToken: false
    },

    method: 'get',
    timeout: 20000
  })
}

///data/show/line/list/{lineId} 获取详情
export function getDatails(lineId) {
  return request({
    url: '/data/show/line/list/' + lineId,
    headers: {
      isToken: false
    },

    method: 'get',
    timeout: 20000
  })
}